<!--
  我們觀察: 當密碼輸入 3 個字元以下時, 在 MemberSimpleFormController.onSubmit() 並不會執行.<br>
  所以可得知, 當 controller 接受到請求時, 會先做 validator(如果 .xml 有設定 validator), 再去執行 onSubmit()<br>
 --> 

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body> 
<p>SimpleValidator, 會員註冊畫面</p>

<form action="/SpringMVC/simpleValidator.do" method="post">
<P>naem:<input type="text" name="name"/></P>
<P>password:<input type="password" name="password"/></P>
<p><input type="submit" value="OK"/></p>
</form>

<P>密碼長度小於 4, 會回到這一頁</P>
</body>
</html>